package com.springboot.wisdom.serviceApi.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class MenuTree{
    private String menuId;
    private String menuName;
    private String menuPath;
    private String menuPermissions;
    private String menuType;
    private String menuIcon;
    @Deprecated
    private String menuIndex;
    private String parentId;
    private String parentName;
    private String remark;
    private String component;
    private List<MenuTree> children;

    private String createBy;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
